<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        // console.log(window.prototype == Object.prototype);
        // console.log(Object in window);
        // console.log(window.__proto__);
        // console.log(Object);

        function MyClass() {
        }

        MyClass.prototype.name = '刘德华';

        var mc = new MyClass();
        mc.name = '孙悟空';
        console.log(mc.name);
    </script>
</head>
<body>

</body>
</html>